package pe.gob.onpe.facade.local;

import java.util.List;
import javax.ejb.Local;

import pe.gob.onpe.ejb.ParametroCedula;
import pe.gob.onpe.ejb.id.ParametroCedulaId;


/**
 * Local interface for ParametroCedulaFacade.
 * 
 * @author MyEclipse Persistence Tools
 */
@Local
public interface ParametroCedulaFacadeLocal {
	/**
	 * Perform an initial save of a previously unsaved ParametroCedula entity.
	 * All subsequent persist actions of this entity should use the #update()
	 * method.
	 * 
	 * @param entity
	 *            ParametroCedula entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(ParametroCedula entity);

	/**
	 * Delete a persistent ParametroCedula entity.
	 * 
	 * @param entity
	 *            ParametroCedula entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(ParametroCedula entity);

	/**
	 * Persist a previously saved ParametroCedula entity and return it or a copy
	 * of it to the sender. A copy of the ParametroCedula entity parameter is
	 * returned when the JPA persistence mechanism has not previously been
	 * tracking the updated entity.
	 * 
	 * @param entity
	 *            ParametroCedula entity to update
	 * @returns ParametroCedula the persisted ParametroCedula entity instance,
	 *          may not be the same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public ParametroCedula update(ParametroCedula entity);

	public ParametroCedula findById(ParametroCedulaId id);

	/**
	 * Find all ParametroCedula entities with a specific property value.
	 * 
	 * @param propertyName
	 *            the name of the ParametroCedula property to query
	 * @param value
	 *            the property value to match
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ParametroCedula> found by query
	 */
	public List<ParametroCedula> findByProperty(String propertyName,
			Object value, int... rowStartIdxAndCount);

	public List<ParametroCedula> findByValor(Object valor,
			int... rowStartIdxAndCount);

	/**
	 * Find all ParametroCedula entities.
	 * 
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ParametroCedula> all ParametroCedula entities
	 */
	public List<ParametroCedula> findAll(int... rowStartIdxAndCount);
}